﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Collections;
using Palsta.Core.exp;

namespace Palsta.Core.Manifest
{
    class Rule
    {

        #region Members

        private String caption;
        private String condition;
        private Boolean isEnable;
        private ArrayList ruleActions = new ArrayList();  //of RuleSetAssignmentAction

        #endregion

        #region Constructors

        public Rule()
            : this("", "", false)
        { 
            ;
        }

        public Rule(String caption, String condition, Boolean isEnable)
        {
            this.caption = caption;
            this.condition = condition;
            this.isEnable = isEnable;
        }

        #endregion

        #region Accessors

        public virtual String Caption
        {
            get
            {
                return this.caption ;
            }
            set
            {
                this.caption = value;
            }
        }

        public virtual String Condition
        {
            get
            {
                return this.condition;
            }
            set
            {
                this.condition = value;
            }
        }

        public virtual Boolean IsEnable
        {
            get
            {
                return this.isEnable;
            }
            set
            {
                this.isEnable = value;
            }
        }

        public virtual ArrayList RuleActions
        {
            get
            {
                return this.ruleActions;
            }
            set
            {
                this.ruleActions = value;
            }
        }


        #endregion

    }
}
